﻿<div class="campus">
  <div class="right_top">
    <span class="more">
      <a href="/news?important=<%= @important == '1' ? 0 : 1 %>">
        <i></i><i></i><i></i>
      </a>
    </span>
    <% if @important == "0" %>
      <span class="right_title">热点新闻</span>
    <% elsif @important == "1" %>
      <span class="right_title">热点新闻</span>
    <% else %>
      <span class="right_title">热点新闻</span>
    <% end %>
    </div>
  <div class="campusNews">
    <ul>
      <% @intro_news.each do |news| %>  
        <li><a href="/news/<%= news.id %>?important=<%= @important == '1' ? 0 : 1 %>"><%=raw news.title %></a></li>
      <% end %>
    </ul>
  </div>
</div>
<!--campus(end)-->
<!--hot(start)-->
<div class="hot">
  <div class="right_top">
    <span class="more">
      <a href="<%= sptitles_path %>">
        <i></i><i></i><i></i>
      </a>
    </span>
    <span class="right_title">热点专题</span>
  </div>
  <div class="hotNews">
    <ul>
      <% @hot_sptitles.each do |sptitle| %>          
      <li class="clearfix">
        <div class="imgages">
          <a href="<%= sptitles_path(sptitle.id) %>" class="images">
            <% if sptitle.picture.present? %>
                <%=image_tag sptitle.picture,:size => "76x68" %>
            <% else %>
                <%=image_tag("home/hot_pic_01.png",width: "76px", height: "68px")%>
            <% end %>

          </a>
        </div>
        <div class="word">
          <a href="<%= sptitles_path(sptitle.id) %>" class="promt"><%=raw sptitle.name %></a>
        </div>
      </li>
      <% end %>
    </ul>
  </div>
</div>
    <!--hot(end)-->
    <!--abroad(start)-->
<div class="abroad">
  <div class="right_top clearfix">
        <span class="more">
            <a href="<%= news_index_path(sptitle_id: 68) %>">
              <i></i><i></i><i></i>
            </a>
        </span>
        <span class="right_title">图说华理</span>
    </div>
  <div class="abroadNews" id="abroadNews">
    <div class="imageBox">
      <ul class="slide" id="img" style="width: 1440px; left: -480px;">
        <% @pic_say_huali_news.each do |news| %>
          <li>
            <a href="<%= news_path(news.id)%>">
              <% if news.home_page_image.present? %>
                  <%=image_tag news.home_page_image,:size => "240x127" %>
              <% else %>
                  <%=image_tag("home/p13_01.png",width: "240px", height: "127px")%>
              <% end %>
            </a>
          </li>
        <% end %>
      </ul>
    </div>
    <i class="slideLeft"></i>
    <i class="slideRight"></i>

  </div>
</div>
